// utils/auth.js
function checkLogin() {
  const isLoggedIn = wx.getStorageSync('token');
  if (!isLoggedIn) {
    wx.switchTab({
      url: '/pages/mine/mine',
    });
  }
}

module.exports = {
  checkLogin,
};
